Page({
  data: {
    menuItem: {}
  },

  onLoad(options) {
    // 从缓存中获取详情数据
    const detailData = wx.getStorageSync('detailData');
    
    if (detailData) {
      this.setData({
        menuItem: detailData
      });
    }
  },

  // 返回上一页
  onBack() {
    wx.navigateBack();
  }
});
